home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / super_fly.swf / scripts / DefineSprite_86 / frame_8 / DoAction.as
Text File  |  2012-01-07  |  536b  |  30 lines

  1. theTime = getTimer();
  2. if(theTime < MoveEnd)
  3. {
  4.    gotoAndPlay(6);
  5. }
  6. else
  7. {
  8.    setProperty("fly1", _X, xL4);
  9.    setProperty("fly1", _Y, yL4);
  10.    wherex = getProperty("fly1", _X);
  11.    wherey = getProperty("fly1", _Y);
  12.    if("320" < wherex)
  13.    {
  14.       setProperty("fly1", _X, "319");
  15.    }
  16.    if("120" < wherey)
  17.    {
  18.       setProperty("fly1", _Y, "119");
  19.    }
  20.    if(wherex < "0")
  21.    {
  22.       setProperty("fly1", _X, "1");
  23.    }
  24.    if(wherey < "0")
  25.    {
  26.       setProperty("fly1", _Y, "1");
  27.    }
  28.    gotoAndPlay(5);
  29. }
  30.